From: Keir Fraser Date: Tue, 31 Mar 2009 12:57:11 +0000 (+0100) Subject: xend: Fix domain creation. X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~13989^2~32 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/%22bookmarks://%22/%22http:/www.example.com/cgi/%22https:/%22bookmarks:/%22?a=commitdiff_plain;h=2fa8c71b9f71b6973cce13cd41a45aac4baf17de;p=xen.git xend: Fix domain creation. Signed-off-by: Keir Fraser --- diff --git a/tools/python/xen/xend/XendDomainInfo.py b/tools/python/xen/xend/XendDomainInfo.py index 7497c7e435..8cc2084acf 100644 --- a/tools/python/xen/xend/XendDomainInfo.py +++ b/tools/python/xen/xend/XendDomainInfo.py @@ -2324,9 +2324,9 @@ class XendDomainInfo: if weight < 1 or weight > 65535: raise VmError("Cpu weight out of range, valid values are within range from 1 to 65535") - if cap < 0 or cap > dominfo.getVCpuCount() * 100: + if cap < 0 or cap > self.getVCpuCount() * 100: raise VmError("Cpu cap out of range, valid range is from 0 to %s for specified number of vcpus" % - (dominfo.getVCpuCount() * 100)) + (self.getVCpuCount() * 100)) # Test whether the devices can be assigned with VT-d pci = self.info["platform"].get("pci")